package com.dragon.modules.yuegou.model.live;

import com.dragon.modules.yuegou.entity.live.GetliveinfoEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 直播间回放视频模型类
 * 
 * @author ZSH
 * @date 2020-06-06 15:48:40
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Getliveinfo extends GetliveinfoEntity {

	/**
	 * 构造一个空直播间回放视频模型对象
	 */
	public Getliveinfo(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个直播间回放视频模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Getliveinfo(GetliveinfoEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个直播间回放视频模型对象
	 * 
	 * @param other 其它对象
	 */
	public Getliveinfo(Getliveinfo other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置Id
	 * 
	 * @param id Id
	 * @return 当前对象
	 */
    public Getliveinfo id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈Id
	 * 
	 * @param busdId 商圈Id
	 * @return 当前对象
	 */
    public Getliveinfo busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getBroadcastId() {
    	return broadcastId;
    }

    /**
	 * 设置直播间Id
	 * 
	 * @param broadcastId 直播间Id
	 * @return 当前对象
	 */
    public Getliveinfo broadcastId(String broadcastId) {
    	this.broadcastId = broadcastId;
    	return this;
    }

	@Override
	public String getMediaUrl() {
    	return mediaUrl;
    }

    /**
	 * 设置回放视频
	 * 
	 * @param mediaUrl 回放视频
	 * @return 当前对象
	 */
    public Getliveinfo mediaUrl(String mediaUrl) {
    	this.mediaUrl = mediaUrl;
    	return this;
    }

	@Override
	public LocalDateTime getExpireTime() {
    	return expireTime;
    }

    /**
	 * 设置回放视频 url 过期时间
	 * 
	 * @param expireTime 回放视频 url 过期时间
	 * @return 当前对象
	 */
    public Getliveinfo expireTime(LocalDateTime expireTime) {
    	this.expireTime = expireTime;
    	return this;
    }

	@Override
	public LocalDateTime getCreateTime() {
    	return createTime;
    }

    /**
	 * 设置回放视频创建时间
	 * 
	 * @param createTime 回放视频创建时间
	 * @return 当前对象
	 */
    public Getliveinfo createTime(LocalDateTime createTime) {
    	this.createTime = createTime;
    	return this;
    }
}
